Filename | (eval 417)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
Statements | Executed 68 statements in 1.40ms |
Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 2 | 2 | 148µs | 108s | new | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 20µs | 30µs | BEGIN@143 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 15µs | 43µs | BEGIN@14.302 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 10µs | 22µs | BEGIN@87 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 9µs | 25µs | BEGIN@77 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 7µs | 14µs | BEGIN@111 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 7µs | 18µs | BEGIN@138 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 7µs | 7µs | BEGIN@19.303 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 7µs | 15µs | BEGIN@90 | JSON::Schema::Modern::Document::OpenAPI::
1 | 1 | 1 | 5µs | 18µs | BEGIN@82 | JSON::Schema::Modern::Document::OpenAPI::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | { | ||||
2 | 2 | 4µs | my $isa_check_for_evaluator = ${$_[1]->{"\$isa_check_for_evaluator"}}; | ||
3 | 1 | 1µs | my $isa_check_for_json_5fschema_5fdialect = ${$_[1]->{"\$isa_check_for_json_5fschema_5fdialect"}}; | ||
4 | 1 | 0s | my $isa_check_for_errors = ${$_[1]->{"\$isa_check_for_errors"}}; | ||
5 | 1 | 1µs | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
6 | 1 | 1µs | my $coerce_for_canonical_5furi = ${$_[1]->{"\$coerce_for_canonical_5furi"}}; | ||
7 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
8 | 1 | 1µs | my $isa_check_for_metaschema_5furi = ${$_[1]->{"\$isa_check_for_metaschema_5furi"}}; | ||
9 | 1 | 0s | my $coerce_for_json_5fschema_5fdialect = ${$_[1]->{"\$coerce_for_json_5fschema_5fdialect"}}; | ||
10 | 1 | 0s | my $isa_check_for_canonical_5furi = ${$_[1]->{"\$isa_check_for_canonical_5furi"}}; | ||
11 | 1 | 1µs | my $isa_check_for_operationIds = ${$_[1]->{"\$isa_check_for_operationIds"}}; | ||
12 | 1 | 0s | my $coerce_for_metaschema_5furi = ${$_[1]->{"\$coerce_for_metaschema_5furi"}}; | ||
13 | package JSON::Schema::Modern::Document::OpenAPI; | ||||
14 | 2 | 60µs | 2 | 71µs | # spent 43µs (15+28) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@14.302 which was called:
# once (15µs+28µs) by Sub::Quote::_clean_eval at line 14 # spent 43µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@14.302
# spent 28µs making 1 call to warnings::unimport |
15 | # spent 108s (148µs+108) within JSON::Schema::Modern::Document::OpenAPI::new which was called 2 times, avg 54.1s/call:
# once (137µs+108s) by OpenAPI::Modern::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/OpenAPI/Modern.pm:79] at line 177 of Sub/Defer.pm
# once (11µs+6.16ms) by OpenAPI::Modern::__ANON__[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/OpenAPI/Modern.pm:79] at line 72 of OpenAPI/Modern.pm | ||||
16 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
17 | # BEGIN quote_sub PRELUDE | ||||
18 | package JSON::Schema::Modern::Document::OpenAPI; | ||||
19 | # spent 7µs within JSON::Schema::Modern::Document::OpenAPI::BEGIN@19.303 which was called:
# once (7µs+0s) by Sub::Quote::_clean_eval at line 24 | ||||
20 | 1 | 1µs | $^H = 2018; | ||
21 | 1 | 1µs | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
22 | 1 | 4µs | %^H = ( | ||
23 | ); | ||||
24 | 1 | 254µs | 1 | 7µs | } # spent 7µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@19.303 |
25 | # END quote_sub PRELUDE | ||||
26 | 1 | 1µs | my $invoker = CORE::shift(); | ||
27 | 1 | 1µs | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
28 | 1 | 0s | if ($class ne "JSON::Schema::Modern::Document::OpenAPI") { | ||
29 | if ($Moo::MAKERS{$class}) { | ||||
30 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
31 | package JSON::Schema::Modern::Document::OpenAPI; | ||||
32 | return $invoker->SUPER::new(@_); | ||||
33 | } | ||||
34 | Moo->_constructor_maker_for($class); | ||||
35 | return $invoker->new(@_); | ||||
36 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
37 | return $meta->new_object( | ||||
38 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
39 | : $class->Moo::Object::BUILDARGS(@_) | ||||
40 | ); | ||||
41 | } | ||||
42 | } | ||||
43 | my $args = scalar @_ == 1 | ||||
44 | ? CORE::ref $_[0] eq 'HASH' | ||||
45 | 1 | 5µs | ? { %{ $_[0] } } | ||
46 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
47 | . " data => ". $_[0]) | ||||
48 | : @_ % 2 | ||||
49 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
50 | . " key/value list. You passed an odd number of arguments") | ||||
51 | : {@_} | ||||
52 | ; | ||||
53 | 1 | 3µs | if (my @missing = grep !exists $args->{$_}, "evaluator", "schema") { | ||
54 | Carp::croak("Missing required arguments: ".CORE::join(', ', sort @missing)); | ||||
55 | } | ||||
56 | 1 | 12µs | 2 | 19µs | my $new = $invoker->JSON::Schema::Modern::Document::SUPER::new($class->FOREIGNBUILDARGS(@_)); # spent 16µs making 1 call to Mojo::JSON::Pointer::new
# spent 3µs making 1 call to JSON::Schema::Modern::Document::FOREIGNBUILDARGS |
57 | 1 | 0s | (exists $args->{"canonical_uri"} and ($new->{"canonical_uri"} = scalar do { my $value = do { | ||
58 | 1 | 2µs | local $Method::Generate::Accessor::CurrentAttribute = { | ||
59 | init_arg => "canonical_uri", | ||||
60 | name => "canonical_uri", | ||||
61 | step => "coercion", | ||||
62 | }; | ||||
63 | 1 | 1µs | (my $_return), | ||
64 | (my $_error), (my $_old_error = $@); | ||||
65 | 1 | 1µs | (eval { | ||
66 | ($@ = $_old_error), | ||||
67 | ($_return = | ||||
68 | 1 | 3µs | 1 | 442µs | $coerce_for_canonical_5furi->($args->{"canonical_uri"})), # spent 442µs making 1 call to JSON::Schema::Modern::Document::__ANON__[JSON/Schema/Modern/Document.pm:39] |
69 | 1 | ||||
70 | } or | ||||
71 | $_error = CORE::ref $@ ? $@ : "coercion for \"canonical_uri\" failed: ".$@); | ||||
72 | 1 | 1µs | ($@ = $_old_error), | ||
73 | (defined $_error and CORE::die $_error); | ||||
74 | 1 | 1µs | $_return; | ||
75 | } | ||||
76 | ; | ||||
77 | 7 | 114µs | 5 | 47µs | # spent 25µs (9+16) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@77 which was called:
# once (9µs+16µs) by Sub::Quote::_clean_eval at line 77 # spent 25µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@77
# spent 16µs making 1 call to warnings::unimport
# spent 2µs making 1 call to Mojo::URL::fragment
# spent 2µs making 1 call to Scalar::Util::blessed
# spent 2µs making 1 call to UNIVERSAL::isa |
78 | $value | ||||
79 | } | ||||
80 | )), | ||||
81 | (exists $args->{"errors"} and ($new->{"errors"} = scalar do { my $value = $args->{"errors"}; | ||||
82 | 2 | 112µs | 2 | 31µs | # spent 18µs (5+13) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@82 which was called:
# once (5µs+13µs) by Sub::Quote::_clean_eval at line 82 # spent 18µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@82
# spent 13µs making 1 call to warnings::unimport |
83 | $value | ||||
84 | } | ||||
85 | )), | ||||
86 | 2 | 9µs | 1 | 1µs | (exists $args->{"evaluator"} and (do { Scalar::Util::weaken($new->{"evaluator"} = scalar do { my $value = $args->{"evaluator"}; # spent 1µs making 1 call to Scalar::Util::weaken |
87 | 5 | 85µs | 4 | 36µs | # spent 22µs (10+12) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@87 which was called:
# once (10µs+12µs) by Sub::Quote::_clean_eval at line 87 # spent 22µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@87
# spent 12µs making 1 call to warnings::unimport
# spent 1µs making 1 call to Scalar::Util::blessed
# spent 1µs making 1 call to UNIVERSAL::isa |
88 | $value | ||||
89 | } | ||||
90 | 3 | 88µs | 2 | 23µs | # spent 15µs (7+8) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@90 which was called:
# once (7µs+8µs) by Sub::Quote::_clean_eval at line 90 # spent 15µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@90
# spent 8µs making 1 call to warnings::unimport |
91 | (exists $args->{"json_schema_dialect"} and ($new->{"json_schema_dialect"} = scalar do { my $value = do { | ||||
92 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
93 | init_arg => "json_schema_dialect", | ||||
94 | name => "json_schema_dialect", | ||||
95 | step => "coercion", | ||||
96 | }; | ||||
97 | (my $_return), | ||||
98 | (my $_error), (my $_old_error = $@); | ||||
99 | (eval { | ||||
100 | ($@ = $_old_error), | ||||
101 | ($_return = | ||||
102 | $coerce_for_json_5fschema_5fdialect->($args->{"json_schema_dialect"})), | ||||
103 | 1 | ||||
104 | } or | ||||
105 | $_error = CORE::ref $@ ? $@ : "coercion for \"json_schema_dialect\" failed: ".$@); | ||||
106 | ($@ = $_old_error), | ||||
107 | (defined $_error and CORE::die $_error); | ||||
108 | $_return; | ||||
109 | } | ||||
110 | ; | ||||
111 | 2 | 119µs | 2 | 21µs | # spent 14µs (7+7) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@111 which was called:
# once (7µs+7µs) by Sub::Quote::_clean_eval at line 111 # spent 14µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@111
# spent 7µs making 1 call to warnings::unimport |
112 | $value | ||||
113 | } | ||||
114 | )), | ||||
115 | 1 | 0s | ($new->{"metaschema_uri"} = scalar do { my $value = do { | ||
116 | 1 | 3µs | local $Method::Generate::Accessor::CurrentAttribute = { | ||
117 | init_arg => "metaschema_uri", | ||||
118 | name => "metaschema_uri", | ||||
119 | step => "coercion", | ||||
120 | }; | ||||
121 | 1 | 1µs | (my $_return), | ||
122 | (my $_error), (my $_old_error = $@); | ||||
123 | 1 | 1µs | (eval { | ||
124 | ($@ = $_old_error), | ||||
125 | ($_return = | ||||
126 | $coerce_for_metaschema_5furi->(( | ||||
127 | exists $args->{"metaschema_uri"} | ||||
128 | 1 | 3µs | 1 | 107µs | ? $args->{"metaschema_uri"} # spent 107µs making 1 call to JSON::Schema::Modern::Document::__ANON__[JSON/Schema/Modern/Document.pm:45] |
129 | : "https://spec.openapis.org/oas/3.1/schema-base/latest"))), | ||||
130 | 1 | ||||
131 | } or | ||||
132 | $_error = CORE::ref $@ ? $@ : "coercion for \"metaschema_uri\" failed: ".$@); | ||||
133 | 1 | 1µs | ($@ = $_old_error), | ||
134 | (defined $_error and CORE::die $_error); | ||||
135 | 1 | 1µs | $_return; | ||
136 | } | ||||
137 | ; | ||||
138 | 5 | 97µs | 4 | 31µs | # spent 18µs (7+11) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@138 which was called:
# once (7µs+11µs) by Sub::Quote::_clean_eval at line 138 # spent 18µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@138
# spent 11µs making 1 call to warnings::unimport
# spent 1µs making 1 call to Scalar::Util::blessed
# spent 1µs making 1 call to UNIVERSAL::isa |
139 | $value | ||||
140 | } | ||||
141 | ), | ||||
142 | (exists $args->{"operationIds"} and ($new->{"operationIds"} = scalar do { my $value = $args->{"operationIds"}; | ||||
143 | 2 | 358µs | 2 | 40µs | # spent 30µs (20+10) within JSON::Schema::Modern::Document::OpenAPI::BEGIN@143 which was called:
# once (20µs+10µs) by Sub::Quote::_clean_eval at line 143 # spent 30µs making 1 call to JSON::Schema::Modern::Document::OpenAPI::BEGIN@143
# spent 10µs making 1 call to warnings::unimport |
144 | $value | ||||
145 | } | ||||
146 | )), | ||||
147 | (exists $args->{"schema"} and ($new->{"schema"} = $args->{"schema"})), | ||||
148 | (($args)[0]->{__no_BUILD__} or ( | ||||
149 | 1 | 36µs | 1 | 108s | $new->JSON::Schema::Modern::Document::BUILD($args), # spent 108s making 1 call to JSON::Schema::Modern::Document::BUILD |
150 | )), | ||||
151 | return $new; | ||||
152 | } | ||||
153 | 1 | 1µs | $$_UNQUOTED = \&new; | ||
154 | } | ||||
155 | 1 | 9µs | 1; | ||
156 | |||||
157 | ; |